
/* Copyright 2018 JDCLOUD.COM

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http:#www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Cloud Cabinet Service API
提供云托管服务的相关接口

OpenAPI spec version: v1
Contact: 

NOTE: This class is auto generated by the jdcloud code generator program.
*/

#import <Foundation/Foundation.h>

#import <JDCloudOCSDKJdccs/JdccsExecutor.h>


/// 查看某资源单个监控项数据
@implementation  JdccsDescribeMetricDataExecutor

-(id) initWithJDCloudClient:(JdccsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/idcs/{idc}/metrics/{metric}/metricData";
    return self;
}
@end

/// 查看某资源的最后一个监控数据点（目前只支持机柜电流）
@implementation  JdccsLastDownsampleExecutor

-(id) initWithJDCloudClient:(JdccsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/idcs/{idc}/metrics/{metric}/lastDownsample";
    return self;
}
@end

/// 查询可用监控项列表
@implementation  JdccsDescribeMetricsExecutor

-(id) initWithJDCloudClient:(JdccsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/metrics";
    return self;
}
@end

/// 查询机房房间号列表
@implementation  JdccsDescribeRoomsExecutor

-(id) initWithJDCloudClient:(JdccsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/idcs/{idc}/rooms";
    return self;
}
@end

/// 查询带宽（出口）流量（资源）详情
@implementation  JdccsDescribeBandwidthTrafficExecutor

-(id) initWithJDCloudClient:(JdccsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/idcs/{idc}/bandwidthTraffics/{bandwidthId}";
    return self;
}
@end

/// 查询带宽（出口）流量列表
@implementation  JdccsDescribeBandwidthTrafficsExecutor

-(id) initWithJDCloudClient:(JdccsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/idcs/{idc}/bandwidthTraffics";
    return self;
}
@end

/// 查询IDC机房列表
@implementation  JdccsDescribeIdcsExecutor

-(id) initWithJDCloudClient:(JdccsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/idcs";
    return self;
}
@end

/// 查询机柜列表
@implementation  JdccsDescribeCabinetsExecutor

-(id) initWithJDCloudClient:(JdccsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/idcs/{idc}/cabinets";
    return self;
}
@end
